BIN    = ../bin/webprint_client
OBJ    = main.o message_handler.o four_gui.o sys_time.o big_screen_gui.o wifi.o keyboard.o url_config_win.o
SRCS   = main.c message_handler.c four_gui.c sys_time.c big_screen_gui.c wifi.c keyboard.c url_config_win.c

PKG_FLAGS= `pkg-config --cflags --libs gtk+-3.0 gthread-2.0 glib-2.0 gstreamer-0.10 libglade-2.0`

LIBPATH = ../bin
LIBS=-L$(LIBPATH) -lglib-2.0 -lgstreamer-0.10 -lgstinterfaces-0.10 -lprinter_sys -lmp4_player -lsocket_client -lprinter_local

INCLUDE = -I/usr/include/glib-2.0\
		  -I/usr/include/gstreamer-0.10\
		  -I/usr/include/gtk-3.0 \
  		  -I../mp4_player\
  		  -I../tcp_client\
  		  -I../printer\
    		  -I../sys\
		  -I../bin
  
$(BIN) : $(OBJ)
		$(CC) $(CCFLAGS) -o $(BIN) $(OBJ) $(PKG_FLAGS) $(INCLUDE) $(LIBS) 

.c.o:
		$(CC) $(CCFLAGS) -c $< $(PKG_FLAGS) $(INCLUDE) $(LIBS) 

		
#$(OBJ) : $(SRCS) 
#		$(CC) $(CCFLAGS) -c -o $(OBJ) $(SRCS) $(PKG_FLAGS) $(INCLUDE) $(LIBS) 
		
.PHONY : clean
clean :
	-rm -f $(BIN) $(OBJ)
    
